CopyFrom<T>(T[],Int32,Int32) Method
In This Topic
Writes the content of the specified buffer to the unmanaged memory location of this instance.
Syntax
'Declaration
Public Overloads Sub CopyFrom(Of As {New, Struct})( _
ByVal () As , _
ByVal As System.Integer, _
ByVal As System.Integer _
)
public void CopyFrom<>(
[] ,
System.int ,
System.int
)
where T: new(), struct
Parameters
- buffer
- The buffer to read from.
- offset
- The offset in the array to read from.
- count
- The number of T element to write to the memory location.
Type Parameters
- T
Exceptions
Exception | Description |
System.ArgumentNullException | buffer |
System.InvalidOperationException | DataPointer is Zero |
System.ArgumentOutOfRangeException | buffer;Total buffer size cannot be larger than size of this data pointer |
See Also